package com.sixth.dao;

import com.sixth.entity.Article;
import com.sixth.entity.Banner;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface ArticleDao {
    int deleteByPrimaryKey(String id);

    int insert(Article record);

    int insertSelective(Article record);

    Article selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Article record);

    int updateByPrimaryKey(Article record);

    List<Article> selectArticleByCondition(@Param("title") String title,@Param("isDeleted") Integer isDeleted);

    void updateById(Banner banner);

    Article selectByNavIdArticle(String navId);

    void UpdateArticle(@Param("navId") String navId,@Param("artTitle") String artTitle,@Param("artDesc") String artDesc);
}